package com.kob.backend;

import com.kob.backend.controller.user.account.SerialCommunication;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.io.IOException;

@SpringBootApplication
@EnableScheduling  //调用updateSeatStatus()
public class BackendApplication {

    public static void main(String[] args) throws IOException {
        SpringApplication.run(BackendApplication.class, args);
        // 启动串口
        SerialCommunication serialCommunication = new SerialCommunication();
        serialCommunication.performSerialCommunication();


    }

}
